//
//  LSZDynamicCommentDetailsManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/8/22.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZDynamicCommentDetailsManager.h"

@implementation LSZDynamicCommentDetailsManager
-(id)initWithDynamicCommentDetails :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * AddArrayMg = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in arrayData) {
            LSZDynamicCommentDetailsMg * mg = [[LSZDynamicCommentDetailsMg alloc]init];
            mg.id_id = NullStringjudgment(NSStr(diction[@"id"]));
            mg.avatar = NullStringjudgment(NSStr(diction[@"avatar"]));
            mg.comment_id = NullStringjudgment(NSStr(diction[@"comment_id"]));
            mg.content = NullStringjudgment(NSStr(diction[@"content"]));
            mg.is_admire = NullStringjudgment(NSStr(diction[@"is_admire"]));
            mg.comment_num = NullStringjudgment(NSStr(diction[@"comment_num"]));
            mg.tid = NullStringjudgment(NSStr(diction[@"tid"]));
            mg.uid = NullStringjudgment(NSStr(diction[@"uid"]));
            mg.username = NullStringjudgment(NSStr(diction[@"username"]));
            mg.admire_num = NullStringjudgment(NSStr(diction[@"admire_num"]));
            mg.add_time = NullStringjudgment(NSStr(diction[@"add_time"]));
            [AddArrayMg addObject:mg];
        }
        self.arrayData = AddArrayMg;
    }
    return self;
}
@end
@implementation LSZDynamicCommentDetailsMg
@end
